package com.atguigu.bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

/**
 * @Author:zwy
 * @Despriction:
 * @Date:Create in 16:17 2018/7/7
 * @Modify By:
 */
@Component
public class Cat implements InitializingBean,DisposableBean {
    public Cat() {
        System.out.println("cat constructor");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("cat---init---");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("cat---destorys---");
    }
}
